package com.example.phone.bean;

import java.util.List;

/**
 * Created by Administrator on 2018\12\26 0026.
 */



    public  class AddressList {

    /**
     * data : {"lastPage":1,"prePage":1,"hasNextPage":false,"nextPage":1,"pageSize":10,"list":[{"address":"武店镇","city":"滁州市","id":1,"mobile":"6211321","name":"倪宗龙","phone":"17879552802","province":"安徽省","user":{"createTime":"2018-12-10 19:15:27","email":"sinclainri@163.com","headPortraitUrl":"","id":1,"password":"123456","phone":"17879552802","role":1,"updateTime":"2018-12-10 19:15:30","username":"nizonglong"},"zip":"233000"}],"pageNum":1,"isFisrtPage":true,"pages":1,"size":1,"firstPage":1,"isLastPage":true,"hasPreviousPage":false}
     * status : 0
     */




        /**
         * lastPage : 1
         * prePage : 1
         * hasNextPage : false
         * nextPage : 1
         * pageSize : 10
         * list : [{"address":"武店镇","city":"滁州市","id":1,"mobile":"6211321","name":"倪宗龙","phone":"17879552802","province":"安徽省","user":{"createTime":"2018-12-10 19:15:27","email":"sinclainri@163.com","headPortraitUrl":"","id":1,"password":"123456","phone":"17879552802","role":1,"updateTime":"2018-12-10 19:15:30","username":"nizonglong"},"zip":"233000"}]
         * pageNum : 1
         * isFisrtPage : true
         * pages : 1
         * size : 1
         * firstPage : 1
         * isLastPage : true
         * hasPreviousPage : false
         */

        private int lastPage;
        private int prePage;
        private boolean hasNextPage;
        private int nextPage;
        private int pageSize;
        private int pageNum;
        private boolean isFisrtPage;
        private int pages;
        private int size;
        private int firstPage;
        private boolean isLastPage;
        private boolean hasPreviousPage;
        private List<ListBean> list;

        public int getLastPage() {
            return lastPage;
        }

        public void setLastPage(int lastPage) {
            this.lastPage = lastPage;
        }

        public int getPrePage() {
            return prePage;
        }

        public void setPrePage(int prePage) {
            this.prePage = prePage;
        }

        public boolean isHasNextPage() {
            return hasNextPage;
        }

        public void setHasNextPage(boolean hasNextPage) {
            this.hasNextPage = hasNextPage;
        }

        public int getNextPage() {
            return nextPage;
        }

        public void setNextPage(int nextPage) {
            this.nextPage = nextPage;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getPageNum() {
            return pageNum;
        }

        public void setPageNum(int pageNum) {
            this.pageNum = pageNum;
        }

        public boolean isIsFisrtPage() {
            return isFisrtPage;
        }

        public void setIsFisrtPage(boolean isFisrtPage) {
            this.isFisrtPage = isFisrtPage;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getFirstPage() {
            return firstPage;
        }

        public void setFirstPage(int firstPage) {
            this.firstPage = firstPage;
        }

        public boolean isIsLastPage() {
            return isLastPage;
        }

        public void setIsLastPage(boolean isLastPage) {
            this.isLastPage = isLastPage;
        }

        public boolean isHasPreviousPage() {
            return hasPreviousPage;
        }

        public void setHasPreviousPage(boolean hasPreviousPage) {
            this.hasPreviousPage = hasPreviousPage;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * address : 武店镇
             * city : 滁州市
             * id : 1
             * mobile : 6211321
             * name : 倪宗龙
             * phone : 17879552802
             * province : 安徽省
             * user : {"createTime":"2018-12-10 19:15:27","email":"sinclainri@163.com","headPortraitUrl":"","id":1,"password":"123456","phone":"17879552802","role":1,"updateTime":"2018-12-10 19:15:30","username":"nizonglong"}
             * zip : 233000
             */

            private String address;
            private String city;
            private int id;
            private String mobile;
            private String name;
            private String phone;
            private String province;
            private UserBean user;
            private String zip;

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public UserBean getUser() {
                return user;
            }

            public void setUser(UserBean user) {
                this.user = user;
            }

            public String getZip() {
                return zip;
            }

            public void setZip(String zip) {
                this.zip = zip;
            }
//新的
            public String getFullAddress() {
                return province+city+address;
            }

            public static class UserBean {
                /**
                 * createTime : 2018-12-10 19:15:27
                 * email : sinclainri@163.com
                 * headPortraitUrl :
                 * id : 1
                 * password : 123456
                 * phone : 17879552802
                 * role : 1
                 * updateTime : 2018-12-10 19:15:30
                 * username : nizonglong
                 */

                private String createTime;
                private String email;
                private String headPortraitUrl;
                private int id;
                private String password;
                private String phone;
                private int role;
                private String updateTime;
                private String username;

                public String getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(String createTime) {
                    this.createTime = createTime;
                }

                public String getEmail() {
                    return email;
                }

                public void setEmail(String email) {
                    this.email = email;
                }

                public String getHeadPortraitUrl() {
                    return headPortraitUrl;
                }

                public void setHeadPortraitUrl(String headPortraitUrl) {
                    this.headPortraitUrl = headPortraitUrl;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getPassword() {
                    return password;
                }

                public void setPassword(String password) {
                    this.password = password;
                }

                public String getPhone() {
                    return phone;
                }

                public void setPhone(String phone) {
                    this.phone = phone;
                }

                public int getRole() {
                    return role;
                }

                public void setRole(int role) {
                    this.role = role;
                }

                public String getUpdateTime() {
                    return updateTime;
                }

                public void setUpdateTime(String updateTime) {
                    this.updateTime = updateTime;
                }

                public String getUsername() {
                    return username;
                }

                public void setUsername(String username) {
                    this.username = username;
                }
            }
        }

}

